Fixed inflation and deflation. Added str->deflate->base64 to assist in this process without dealing with streams.
NOTE: Do not convert a deflated string directly to a str. You must base64 it so the conversion back works properly.