I think the proper way to do it is with the ["Unicode sandwich"](http://nedbatchelder.com/text/unipain.html) Ned Batchelder describes.