LPS-38503 Sanitize input name for function namespace