Removed write_UCS2LE since that's a TTX-specific thing anyway