Change tundra.content:emit to also return $encoding, which is
helpful when not specified as an input and a default encoding was
used