Fixes some things about get output and encoding

I'm an idiot.