Fix locale fallback behavior (close #50)