removed "toLocal8Bit" stuff