parse context if it's a string

fixes MatthewMueller/date#38
Merge pull request #40 from bulkan/context_string_parse

parse context if it's a string