Fix: encoding problems and an invalid return statement
Fix: saveToCacheNote is called not only during saving