Fixed the encoding problem when loading an EncodedResource target with specified charset, not encoding.

Comment From: pivotal-issuemaster

@dowenliu-xyz Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-issuemaster

@dowenliu-xyz Thank you for signing the Contributor License Agreement!

Comment From: snicoll

@dowenliu-xyz thank you for the PR and sorry it took so long to review it. In the meantime, PropertiesBeanDefinitionReader is deprecated so we won't make any further change to it.