fixed issue where header values got URL encoded