Replace g_set_error by g_set_error_literal where appropriate