fixed ascii encoding bug in the field validation
Merge branch 'onyg/master' into orderbird/master