   defp decode_blobs(blobs) do
     blobs
     |> Enum.map(fn({:ok, path, content}) ->
-      with {:ok, issue} <- Base.decode64(content),
+      with {:ok, issue} <- Base.decode64(content |> String.replace("\n", "")),
       {:ok, front_matter, body} <- YamlFrontMatter.parse(issue)
         do
         {:ok, path, front_matter, body}


        errors = tree_errors ++ parse_errors ++ github_errors


        results = if length(errors) > 0 do
          errors = Enum.map(errors, fn({:error, path, message}) -> "#{path}: #{message}" end )
          |> Enum.join("\n")

  end

  defp process_tree(data, story_repo, story_paths, github_access_token) do
    Map.get(data, "tree", [])
    |> Enum.filter(fn(x) -> x["type"] == "blob" && String.ends_with?(x["path"], ".md") end)
    |> Enum.filter(fn(x) -> String.starts_with?(x["path"], Keyword.values(story_paths) ) end)
    |> Enum.map(fn(x) ->
      case Github.fetch_blob(%{ access_token: github_access_token, repo: story_repo, sha: x["sha"]}) do
        {:ok, data} ->
          {:ok, x["path"], data["content"]}
        {:error, message} ->
