added methods to decode data as strings