ItemsContentProvider.getIntPref(): Avoid an exception when the preference is empty.
LoginUtils.encrypt(), decrypt(): Specify UTF-8 encoding for all string/bytes conversions.
LoginUtilsTest: Fix some whitespace.
LoginUtils.getEncryptionkey(): Move some code out to another method.