resources: Use g_set_error_literal where appropriate