added 'last second' encoding of percents into %25 so that the decode function doesn't fail.