change example urls, fix decode to accept null