Fix #222 by handling .? as a special case in buildURL()