fix boost directory iterator to use wide paths - closes #2273