Updating function naming regex to replace all non-letter non-number char

Fixes an issue when naming functions from files with `-` in the name.