fix unsynchronisation code for ints

convert from byte to int before casting
fix bit shifts for int synchronisation
fix string splitting for UTF-16

We were splitting on \0\0 which would split between runes.