file(): determine binary file encoding from extension
http tests, test image file to test file encoding determination