@rambo: this is a simple bug in helpers.hex_encode… there is "for char in output_str:" when is should say "for char in input_str:"