Updated the resource factory to use UTF-8