Some systems like thistle uses a variant of base 64 encoding that is safe for URL encoding, this differs from standard base 64 encoding in that there is no padding ‘=’ used and the ‘+’ and ‘/’ characters are replaced by ‘- and ‘_’ see http://en.wikipedia.org/wiki/Base64 for details if required.
Sample app and Customizations updated soon!!