Fix user_id sanitization