PHP 5.6 RFC default encoding

Implementation of this RFC.
https://wiki.php.net/rfc/default_encoding