in reply to Re: Character conversion
in thread Character conversion

That should be %02x, not %x, or else it will fail for "\x0" to "\xF".

One reason URI::Escape is better is because it fails safely when provided with unicode characters, while your code fails badly.