Put more data to log on RegExp UTF-8 errors

And add class for UTF-8 string useful manipulation