fix encoding error due to a call to unicode on a non-ascii string

fix broken unicode() usage which require reload(sys)
now with this patch you no longer need to reload sys and change the default encoding (because this is wrong)