fix custom routes defined by apps

removing the trailing `/` from the path info breaks apps that define custom routes (news, notes).
This was introduced in https://github.com/owncloud/core/pull/6060

@DeepDiver1975 was there a specific purpose for the `rtrim`?

cc @karlitschek