Format paths according to RFC 6570

address #115.