Changed handling of '/' at the beginning of a resource in CoAP and HTTP.