Fixed hex_dump on non utf-8 characters