Make sure headers get sanitized properly. Fixes #9