better to use NSURL to parse the URL and then ask it for the path. This will also URI-decode characters like %20.