report datadir with error, use  instead of  in special page class, prevent double encoding of gallery image paths