Accept trailing / in API URL

Fix MN-190

Signed-off-by: Tomoe Sugihara <tomoe@midokura.com>