Implement split_ext and improve some unicode functions