fix receipt encoding for iOS register purchase