Encode Colon “:”

If you use URIencode() method you will find that some special characters (, / ? : @ & = + $ #) including colon is not encoded to ‘%3A’. To overcome this issue, you should use encodeURIComponent()...