really crapy non-ideomatic barely functioning url generator based on base change