What I'm trying to say is there is no change in logic over here. I am unable to understand how that could fix the issue. Earlier also it was bytes(pretty,'utf-8') and now also it is the same thing.