Implemented conversion functions as optional last argument for reading and writing. Closes #151.

Along with it fixed that certain decoding and sanitizing should not happen for a cookie's key.
Adding syntax highlighting for remaining code blocks in the README.