Fixed unicode encoding for int and None