The bundled ruby pathname library is a slow and hideous beast. There. I said it. This version is based on pathname3.
[Validate]