I'm writing a Drupal module to integrate with a custom Java-based REST API for creating, authenticating, and managing user accounts. I'm using drupal_query_string_encode to encode the calls I'm making to the API.
Should I also use something like check_plain (or something else) to sanitize username, password, & email values before calling the API? I'm most concerned with getting the password handling right, since it would be difficult to change things once the code goes live and passwords are getting hashed.