lz-string implementation for php