Updated idfilter() function for IIS

Similar to a pull request here: https://github.com/splitbrain/dokuwiki/pull/84. However, this time the fix doesn't contain a specific IIS version number as it seems to be working on all versions (I have personally tested it on IIS 7, 7.5 and 8).