URI encoding for date macro