Don't call legalSearchChars() statically so it can properly inherit

Change-Id: I5eb83f59c08fe51daf0bdc2d39ceabcbe92c9b26