fix import and filter illegal chars ex. '