implemented NSURL -> NSData conversion method

fixed typo in the previous pull request I did