fixes #2122 - Cannot search reports on environment name

Can now filter the reports based on environment.
Fixes #1827: ensure there are no backslashes in config template name
Merge remote branch 'theforeman/develop' into develop

* theforeman/develop:
  fixes #2122 - Cannot search reports on environment name