Fix file_get_contents for credentials