[utils] Use bytes-like objects as header values on Python 2