Activity: Improve IsSafeUrl.