Recycling plant material into stock chemicals with electrochemistry