add UTF-8 validation code
**Trac**: **Username**: cyberpunks
issue