dtoc: Decode val if it's a byte string