added default charset to prevent nullpointers when response does not specify