escaping an error from dicom_hashtag not converting to hash