[core:xcube] fix XCube_Utils::encrypt()

fix "mcrypt_generic(): An empty string was passed"
[core:config] fix notice error

fix "Only variable references should be returned by reference"
Merge branch 'master' into 2.3