deletion of ending characters made easier
Fixed type conversion
Fixed build of mailcore2 for iOS 7.1