Fixed regression of non-UTF-8 encoded file.