fix incorrect read/write cp1251 symbols from/in the db