Handling py2/3 string differences when bundling messages