Apple and Google urged Canadian lawmakers to revise proposed online safety legislation, fearing a weakening of encryption protections.