FREEPBX-7317 - escape register string