implemented NSURL -> NSData conversion method

Hello,

I implemented NSURL -> NSData conversion method in NSURL.
Please merge it if it's useful.