Fixed and removed the unessecary UTF-8 conversion in print_to_buffer()