Sanitize params if they are required, regardless of action.

Fixes #59