drop invalid chars