Improved loading of non-UTF-8 strings