Is there existing functionality (in RedditSharp or elsewhere) to do this conversion?