What is some javascript I can use to filter a string removing all characters EXCEPT A-Z, a-z, - and _

Also would it work for multi-language characters?