Sanitize command line arguments