Removing invalid characters from a parameters names