Read entire file before deciding the encoding. Add some other encoding types to try before failing