title: ValueError: a string literal cannot contain nul (0x00) characters odoo
body: <p>I'm getting this error when I try to import users</p>
  
  <p><strong>NB:</strong></p>
  
  <p>the module works fine: I can import users using odoo 10 and postgres 9.3 ubuntu 14</p>
  
  <p>but here I'm using postgres 9.5 odoo 10 ubuntu 16</p>
  
  <pre><code>  File "/home/belazar/Documents/addons_odoo10/hr_biometric_machine/models/biometric_machine.py", line 113, in create_user
      'biometric_device': self.id, }
    File "/opt/odoo/odoo/models.py", line 3830, in create
      record = self.browse(self._create(old_vals))
    File "/opt/odoo/odoo/models.py", line 3925, in _create
      cr.execute(query, tuple(u[2] for u in updates if len(u) &gt; 2))
    File "/opt/odoo/odoo/sql_db.py", line 154, in wrapper
      return f(self, *args, **kwargs)
    File "/opt/odoo/odoo/sql_db.py", line 231, in execute
      res = self._obj.execute(query, params)
  ValueError: A string literal cannot contain NUL (0x00) characters.
  </code></pre>