Safer safe_parse