Adds function to fix console encoding

Needs to be restored after calling run3!
Fixes Unicode handling for closure compiler