Man charged after police find rifle in vehicle