in reply to hexadecimal character

If it's just a question of removing unprintable characters...
s/[:^print:]//g;

-M

Free your mind