fix token encoding issue where expiretime was getting truncated