Check if binary before doing conversion

Request headers aren't always in binary, so need to check before doing
conversion. See https://github.com/gleber/erlcloud/issues/133 for
details.