File open command with given file encoding