Removing spaces from html-rendered endpoint urls