Follow up for issue #378

The previous commit was not complete. Fixes more XSS found on members search.
Merge pull request #391 from jgknight/develop

Follow up for issue #378