Strays are usually held by shelters for a particular amount of time, giving owners time to find their pets. The shelter should be able to tell you when this dog's release date is. Call first thing in the morning on that date. If the dog has not been taken home by its owners, go and pick it up. You may not want to keep it, but at least you'll buy some time while you figure out what to do with it.