py3: decode only if its available