The bosonic string from an algebro-geometric standpoint