Fix: move utf deocding to proper place