Fix replacing dots with underscores