New function to filter bad characters. Filter extension and skin names.