Disallow # character in filter names.

fix #550