Close #19 - Fix for using endpoint urls without /