encoding issue fix + json assertion fail message improved

Two simple but important things :)