fog: encode public urls, decode for filename