fix issue where strings containing & < > and others could not be found