remove illegal extension.