make sure url starts and ends with a slash