Ensure the value of $authenticated_id contains only printing characters.