only decode when values are bytes, for python 2.x support