FormatUrl to fix #6