gentle uuid validation (rails issue 17931)