Fixed bug causing the last byte of the JSON object to not get copied to the APNS request, causing it to fail.