Fix SafeInputUtil. Switch to array list and standard for loop instead of iterator to avoid ConcurrentModificationExceptions