Don't pass a None encoding to str.decode