fixed newline bug in lib64

newlines were appearing in encoded text, instead of the desired nul
terminator.
implementing session cookies