Be more careful and more generous with user input.