encode uri for story slug