test file encoding