Should probably add a note here explaining that PHP 5.4 has made the encoding default to `'UTF-8'`, and is something you should look out for.

http://php.net/htmlentities