You’ve almost certainly got a " or a line break in there somewhere. Read this post: Strange behaviour from SendGrid