fix bytes in dictonarys