tests: add res.charset test