This should probably allow unicode/utf8 as well.  What if the embedded text contains a character > 0x80 ?  Does that get converted correctly?