Probably not possible without using an external service or an extension. "Let me google that for you" is a service which allows you to make such pretty URLs. I'd post the link here, but posting links of that website is not allowed on StackExchange websites!
Edit: Was bored.. Here is some simple code which does it.. Feel free to implement it where you want to: http://jsbin.com/ihomir/4/