Trim header correctly

This was previously done on the wrong end. I'm an idiot.
Merge pull request #10 from WP-API/trim-correctly

Trim header correctly