Any way to calculate the expected string, rather than hardcoding that? That might also make it easier for readers of the test to see which kind of encoding is supposed to be happening here..?