Replace \ with / when replacing the URLs. See #763