fix RecursiveDirectoryIterator() UnexpectedValueException thrown for PHP >= 5.3

@mattsches please test
References #116 and http://board.s9y.org/viewtopic.php?f=1&t=19860