The pontiff also warned of a "new digital slaveries" in his first encyclical since becoming Pope last year.