fix data to hex string in example code, fixes #1