Address some issues with the FileAPI encoding determination test