sanitise and normalize files paths before sending them to the services