Encrypting first chunk length was treated as utf16

Following @dchest advice, fixing #98.