added default encoding (hex)