Input/textarea maxlength with utf8 support