Fixed issue with failing export when certain URLs were present in labels. Closes #1529.