Fixed issue where security configuration used wrong text encoding