Fix mod operator for 0 (return 0 like MMF), fix unicode iterator, and fix case sensitivity for extensions