Applying suggestions from JENKINS-51965 for the TFS plugin
Carlos Rodríguez López https://github.com/jenkinsci/instance-identity-module/pull/11/files is an example of such a change.
Sorry Carlos Rodríguez López I ran into this accidentally, completely up to you if you want to leave this or do it differently. Here's the PR I opened for it. https://github.com/jenkinsci/tfs-plugin/pull/220
I implemented this using Java 8's Base64: https://github.com/jenkinsci/tfs-plugin/pull/228/