CGI was escaping spaces to plus signs, so I just stripped all of the spaces from the Latex expression.