fixes downloading binary files on room info due to trying to utf8 decode...

... everything also cleaned up stuff although the new code isn't as defensive.