does `encoding` need to be stringified