It doesn't belong there. You should always decode the input, as soon as possible; and similarly encode the output immediately before sending it out.
first_alpha should receive an already decoded string.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]