open-file should handle binary mode and coding declarations