A simple utf-8 string length calculator.