handle strings in hackney_bstr:to_lower/1, hackney_bstr:to_upper/1