Closes #1130 by converting source to string