Boundary-induced topological and mid-gap states in charge conserving one-dimensional superconductors: Fractionalization transition