how to replace all special characters except underscore and period in php?