I agree a platform check is appropriate here. 

In general, we try to enforce a superset of all platform naming rules when _validating_ names. In this case, since we _inspecting_ rather than validating, a platform check would be best.