Prevented crash on empty string to our funcs +...

* changed encodeBytes to encode and decodeBytes to decode
* fixed few comments