use SafeLoader instead of Loader

As per #2