Fixed an issue that does not encode the '*'.