Replace htmlentities() with esc_textarea()

Function htmlentities() does not use UTF-8 encoding by default before PHP 5.4.
See #2159