With unicode literals in place the workaround is not limited to Python 3.