CreatePatchFromString assumes that patch string is encoded with LosslesEncoding