fixing table spacing calc for multibyte chars.