Refactored path validation.
Implemented relative generic URI.