handle non-BMP unicode chars in _trunc()
Merge pull request #10 from edx/jsa/fix-non-bmp

handle non-BMP unicode chars in _trunc()