Updated Files services and Encryption Services to use nio rather than io