fixed bug with wrong encoding of certain unicode symbols in textarea