fix problem with spaces in composite Accept or Content-Type headers