hacky string interpretation (made mostly to cover a real-world bug I found)