Replaced spaces in username with ''. Works with drupal 8.4.0.