fix the bytes encoding bug....