I assume the division by 4 is correct here? Does this work if Python is built with 16 bit unicode?