fixed a bug that caused a 500 if a search for a patient or doctor contained a dash