Fix fileencoding error when modifiable is off