Nearly recreating input buffer for libsass