Fix to utf-8 test.

This PR fixes the unicode cube string representation test, which was previously failing due to an ascii encoding being written to file rather than utf-8.