Stop catching UnicodeDecodeError.

decode a bytestring instead of a file
move the decode func into resources/__init__.py