Support for non-UTF8 encodings in sample files