title: Spring startup issue - java.lang.IllegalArgumentException: Value must only contain valid chars
body: <p>After adding Spring Cloud(Finchley.M8) dependency to Spring Boot(2.0.6.RELEASE) project, got an exception:</p>
  
  <pre><code>Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception; nested exception is java.lang.IllegalArgumentException: Value must only contain valid chars
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
      at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:583)
      ... 23 common frames omitted
  Caused by: java.lang.IllegalArgumentException: Value must only contain valid chars
      at org.springframework.util.Assert.isTrue(Assert.java:116)
      at org.springframework.boot.actuate.endpoint.EndpointId.&lt;init&gt;(EndpointId.java:44)
      at org.springframework.boot.actuate.endpoint.EndpointId.of(EndpointId.java:102)
      at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer$EndpointBean.&lt;init&gt;(EndpointDiscoverer.java:471)
  </code></pre>