Fix default encoding issue with PHP 5.4 (Part 4)

- Add retrocompatibility with PHP 5.3
- Save with encoding ISO-8859-1