fixed story permalink to be generated properly; added latinize code from ti