add compatibility for NSString to NSURL.

also add 'debugDescription' methods.