In djam.utils, improved h2r function for it to process unicode or bytes string