You could do `encoding = o.Get("client_encoding"); encoding != '"` and then reuse it in the line below, though this is minor.