change to avoid invalid-file-encode error