Fixed xml charset
Updated slug function