Merge pull request #2610 from mjnaderi/patch-1

character_limiter now works correct for UTF-8 strings