Add util function to mask credit card from xml so we can log it

Every xml that contains `<CreditCard>` tags will mask the its content. For example:

`<CreditCard>1234567890123456</CreditCard>` will become `<CreditCard>123456******3456</CreditCard>`