Collapsing and rearranging and bytes/unicode fun!