Safer parsing