As compat module available only for Flask 0.10+ we need to provide string types for both versions of Python by ourself.