Bugfix for resource loading

Added encoding specifier to get resource loading to work.