webapp: fixing utf8 trailing character