MDL-28936 fix invalid >200 comparison and utf-8 incompatibility