Fix: Data in memory must always be encoded in utf8. PHP files functions need ISO, so we convert data just before and after using them.