Allow IO in the site mapping function.

This is specifically to check for the validity of a request, e.g. whether a file exists.