Use mb_substr when truncating values. Fixes #5