Encrypting first chunk length was treated as utf16

Following @dchest advice, fixing #98.
Fixing broken linting in commit 4c84559
Merge pull request #104 from giuscri/master

While encrypting, first chunk was treated as utf16