Convert response.charset to lowercase on assigning, add tests