Fix lsa2 to deal with unicode input