Make sure we write character vector bits/bytes in the correct order

Apparently I had this the wrong way around before!