TinyUrl clone with Sinatra