Error when I export translate 
Impacted versions: 
11.0 from github repo 
Steps to reproduce:
I run 
python3.6 ./odoo-bin --stop-after-init -d test1 -c ../odoo.cfg -l ru --i18n-export=../ru.po --modules base 
I have 
Traceback (most recent call last):
  File "/home/projects/odoo/odoo-bin", line 8, in <module>
    odoo.cli.main()
  File "/home/projects/odoo/odoo/cli/command.py", line 60, in main
    o.run(args)
  File "/home/projects/odoo/odoo/cli/server.py", line 175, in run
    main(args)
  File "/home/projects/odoo/odoo/cli/server.py", line 154, in main
    export_translation()
  File "/home/projects/odoo/odoo/cli/server.py", line 106, in export_translation
    config["translate_modules"] or ["all"], buf, fileformat, cr)
  File "/home/projects/odoo/odoo/tools/translate.py", line 713, in trans_export
    _process(format, modules, translations, buffer, lang)
  File "/home/projects/odoo/odoo/tools/translate.py", line 669, in _process
    writer.write_infos(modules)
  File "/home/projects/odoo/odoo/tools/translate.py", line 622, in write_infos
    'now': datetime.utcnow().strftime('%Y-%m-%d %H:%M')+"+0000",
  File "/home/projects/odoo_dev/odoo11_36/lib64/python3.6/codecs.py", line 719, in write
    return self.writer.write(data)
  File "/home/projects/odoo_dev/odoo11_36/lib64/python3.6/codecs.py", line 378, in write
    self.stream.write(data)
TypeError: write() argument must be str, not bytes
odoo/cli/server.py
""" Create a file with the process id written in it.
    This function assumes the configuration has been initialized.
    """
    config = odoo.tools.config
    if not odoo.evented and config['pidfile']:
        pid = os.getpid()
        with open(config['pidfile'], 'w') as fd:
            fd.write(str(pid))
        atexit.register(rm_pid_file, pid)
def export_translation():
    config = odoo.tools.config
    dbname = config['db_name']
    if config["language"]:
        msg = "language %s" % (config["language"],)
    else:
        msg = "new language"
    _logger.info('writing translation file for %s to %s', msg,
        config["translate_out"])
    fileformat = os.path.splitext(config["translate_out"])[-1][1:].lower()
    with open(config["translate_out"], "w") as buf:
        registry = odoo.modules.registry.Registry.new(dbname)
        with odoo.api.Environment.manage():
            with registry.cursor() as cr:
                odoo.tools.trans_export(config["language"],
                    config["translate_modules"] or ["all"], buf, fileformat, cr)
    _logger.info('translation file written successfully')
def import_translation():