I don't know which sed(1) Alpine packages, but you might be able to use sed 's/[^[:graph:]]//g' instead of tr(1). But I think requiring a greater-than-busybox is fine for pass.