encoding is a string.