Allow specifying format when getting files from contents API