Implement RFC https://wiki.php.net/rfc/default_encoding