in reply to ignore UTF codes

I cannot repeat your problem. However, please see if no locale doesn't help. Please also study perlunicode; someone else may have a better answer.

Works for me:

$ perl -le 'print "hello\253there"' | perl -pe 'tr/\253//d' hellothere