Fixed result encoding in get_queue

Minor fix...