I'm getting an annoying newline in the response, this probably won't fix it, but it's worth a shot since it's a bad idea to have ?> at the end anyway