also, it would be great to add some kind of test with actual unicode characters so that you have some sense that the wrapping works with non-ascii-compatible unicode.