Trim potential trailing forward slashes from Xml namespaces

Fix #1769