Make trailing slash optional.