Added method to return exact URI string with or without the final slash