escapeUnicode: prepared for perl