smb: Fixed URL encoded URLs not working
smb: Moved the URL decoding into a separate function