made fix to remove invalid chars