Fix strlen issue with makePathInfo