[ticket/11711] Inform user of unsupported characters while posting

PHPBB3-11711

Ticket: https://tracker.phpbb.com/browse/PHPBB3-11711
Copy-pasted from already existing code. Will change it if you want to though.