refs #117
better utf-8 support.
refs #117 - improve close frame.