     end
 
     releases = get_releases(root_dir, erts_dir)
-    do_select_releases(releases, release, version)
+    do_select_releases(releases, String.to_charlist(release), String.to_charlist(version))
   end
 
   defp do_select_releases([], _release, _version) do


  # Returns the absolute path to an ERTS lib, or false if it doesn't exist
  defp get_erts_lib(erts_dir, name, vsn) do
    dir = Path.join([erts_dir, "..", "lib", "#{name}", "#{vsn}"])

    if File.exists?(dir) do
      dir


  # Used to fix invalid paths in RELEASES
  defp fix_release(
         {:release, release, version, erts_vsn, libs, status} = rel,
         root_dir,
         erts_dir
       ) do
