Fix for >16Kb packets

Fixes problems with large packets of >16Kb
(Issue: https://github.com/Wisembly/elephant.io/issues/18)