Do you really need a library for that? Why can't you leave the name as it was entered by the user, without making further assumptions?
Whether it's curse words or porn websites or whatever.
I guess most plain english words would be curse words in other languages. Conversely, many plain words and names in other languages will be incorrectly interpreted as english curse words. There's no way to avoid this. Forbidding english curse words would be extremely offensive to people whose name coincides with those words.
The same discussion will also have to talk about whether Mr. SomepornwebsiteDOTcom or Mrs. Hitlerdidnothingwrong are real people and what to do about it.