Add URI.escape for service_name and section_name

Tests with whitespaces are also added.