createAbsoluteUri now behaves as expected with respect to URL segments without trailing slashes. Fixes #1.