Fixed string replacement index in ChatUtil.parseURLs