Fixed incorrect check of UTF-8 encoding
Authored by: artyom-beilis 2010-09-06
Parent: [r1406]
Child: [r1408]