Remove not allowed characters from a file name string

The following are invalid characters for the filename

NUL, , /, :, *, ", <, >, |

What is the simplest code to remove these characters from a string?