fix bug when mrn was containing bad characters

in dicom listener and pacs_pull plugin